DRAW SPRITES LAST

This command change the order in which sprites are drawn to the screen.

  Syntax
DRAW SPRITES LAST
  Returns

This command does not return a value.

  Description

By calling this command, all sprites will be drawn to the screen "after" any 3D is drawn. This will cause the sprites to appear over the top of any 3D being rendered. This is the default behaviour.

  Example Code
CLS RGB(255,0,0)
GET IMAGE 1,0,0,32,32
SPRITE 1,50,50,1
DRAW SPRITES LAST
DO
CLS
TEXT 40,50,"SPRITE IN FRONT"
LOOP
  See also

CORE Commands Menu
Index